package org.example.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class NitChat {

    private Integer id;
    private String msg;
    private Integer userId;
    private Integer adminId;
    private Integer nitRecordId;
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date date;
    private Integer status;
    private Integer sendId;//发送方的id

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getAdminId() {
        return adminId;
    }

    public void setAdminId(Integer adminId) {
        this.adminId = adminId;
    }

    public Integer getNitRecordId() {
        return nitRecordId;
    }

    public void setNitRecordId(Integer nitRecordId) {
        this.nitRecordId = nitRecordId;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSendId() {
        return sendId;
    }

    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }

    @Override
    public String toString() {
        return "NitChat{" +
                "id=" + id +
                ", msg='" + msg + '\'' +
                ", userId=" + userId +
                ", adminId=" + adminId +
                ", nitRecordId=" + nitRecordId +
                ", date=" + date +
                ", status=" + status +
                ", sendId=" + sendId +
                '}';
    }
}
